package com.hskn.hss.module.cleardetail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hskn.hss.utils.StringUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author hskn
 * @since 2021-05-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ClearDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 垃圾清运-自定义查询-清运达标明细id
     */
    @TableId(value = "clear_detail_id", type = IdType.ASSIGN_UUID)
    private String clearDetailId;

    /**
     * 清运点id
     */
    private String qydId;

    /**
     * 清运点名称
     */
    private String qydName;

    /**
     * 设施类型id
     */
    private String sheshiTypeId;

    /**
     * 设施类型名称
     */
    private String sheshiTypeName;

    private String depId;

    private String depName;

    /**
     * 清运频次 几天几次
     */
    private Integer clearPinciDay;
    private Integer clearPinciCi;

    /**
     * 日期
     */
    private LocalDate date;

    public String getDate() {
        return StringUtils.localDateToStr(date);
    }

    /**
     * 达标情况，1达标，0不达标
     */
    private Integer isOk;

    /**
     * 车牌号
     */
    private String carName;

    /**
     * 车id
     */
    private String carId;

    /**
     * 清运时间
     */
    private Date time;

    /**
     * 清运桶次
     */
    private Integer clearBucketNum;

    /**
     * 垃圾清运 作业计划id
     */
    private String workPlanId;

    private Date createTime;

    private Date updateTime;


}
